// { dg-do compile { target c++2a } }

#include <new>

namespace delete_selection_r {
  struct B {
    void operator delete(B *, std::destroying_delete_t) = delete;
    void operator delete(void*) = delete;
  };
  void delete_B(B *b) { delete b; }  // { dg-bogus "deleted .* deleted" }
  // { dg-error "deleted" "" { target c++2a } .-1 }
}
